Is there a G-code to get power supply state? I'm using M80 and M81 G-codes to power on/off power supply. 

Is there a G-code to know the actual state of the power supply?
I don't see one at http://reprap.org/wiki/G-code so it's probably safest to set the power supply to the state you want.