Arduino and Raspi - read state from Raspi

Hello,

is it possible to read the state (On, Off/Shutdown) of an Rasberry Pi with a Arduino?

On my Raspi is OpenELEC installed. I want to create a switch-script
for the Ardunio with one PushButton.

Press Button on Arduino:

If Raspi == Off then switch Relais 1 on
If Raspi == On then switch Relais 1 off

Is that possible?

regard

Presumably the Pi can take one of its pins HIGH or LOW when on. If so, then it is trivial for the Arduino to read its state and act accordingly.