Program

Is there a way to retrieve the program that was downloaded to the Arduino ? Assuming that you have several Arduino's running and then you don't know what the last file was sent to your board , or you never kept the program to resend it to the device.

..no

You can retrieve the hex code. Maybe compare it other hex codes for which you can trace back to an .ino and see what you have.