If you look at the documentation of your cRIO, you will see that the color of the Power LED is linked to the Power Input you are using. That way, you can access this value by using this kind of application on your target:
It reads the value of the brightness of the color of your choice (green in this example) and outputs TRUE on the "V1 power" boolean if the power input V1 is used.