This is called HDR, or High Dynamic Range. It is achieved by both picture taking, and post production techniques. Basically, (and I mean very basically) it is done like this: In the initial picture taking, the photographer shoots different exposure values of the same scene - both under exposing, over exposing, and correct exposure. Then in post production using Photoshop or plug-ins, you "sandwich" (for lack of a better term) together the different exposures together, adjusting the values of the exposures for the desired effect. The trick is that the picture taking has to be exactly the same same scene for each of the different exposures - you can't move the camera. that's why it's very rare to see this technique used for moving objects. Most high-end cameras can be set to "bracket" exposures, and that makes the picture taking part of it easier...
Here's a link that explains it pretty well:
High Dynamic Range (HDR) Photography in Photoshop CS2
brad