You can download the source code to povray here:
http://www.povray.org/download/
(It's about half-way down the page.)
To anwer the question of how computationally expensive: very.
Actually, emissive media is not so bad, but photons\transmitting media can be very slow if you're not careful.