How to find the Last program loaded in Arduino ATMEGA328p

yesterday I loaded my ARDUINO with led and Motor code's but today nether LED glows Nor the Motor is running
I don't know which program's were loaded in the ARDUINO
pl can any one help me find the same
thanks