I don't have S7 at hand, but if you look into the standard SFC/SFC library, i THINK I once saw that one of them can be used to read out the LED status.
If you want to monitor that the CPU is running from a remote unit, use a counter and check if it is changing.