It's all part of the exif file that's usually imbedded in with the photo. If someone shoots in jpeg and uploads the photo straight, then you'd see the camera's firmware. If you shoot raw and use a software to transfer to jpeg and/or improve (color, contrast, definition) the program used will show up.
As far as the lightsource, I have to admit that I don't have a clue. Maybe someone else has.