Viewing Installed Code

No, you can’t do that in the way you want. There is a way to get code off a Photon, but it will be the compiled binary, not the text (in C or C++) that you wrote. Have a look at this thread.