Detecting if spotlights are removed from 4wd.

as a simple continuity test would expose the arduino pins to the 12v battery power when the lights are turned on.

A small signal diode might protect an arduino output pin from being back fed from the 12v source.