What is loaded in Arduino?

Hi All,
How to determine and print out the name of and contents of the program loaded in Arduino

There is no name, but you can use avrdude to recover the binary image from the processor.