Colros has it bang on.
You need to use the main beam as a feed to drive a relay - here's a picture, although it is for an auxilary circuit, the wiring is the same.
where it says
'power for accessories', that would be your spot lights,
Where it says
'12v feed', that would be a feed from your main beam