Determine with Arduino if 220V AC power is on or off
Use any optocoupler in parallel with socket (of course, current-limiting resistor and reverse-polarity protection is necessary), and RC-filter on secondary side.