The source code is not in the Arduino. You may be able to use AVRDUDE (the uploader that Arduino uses to load your sketches) to download the memory of your Arduino and create a .hex file that can be uploaded (again using avrdude) to another ATmega chip i the same kind of Arduino.