in the main "fuse box" in the engine compartment there is a long black rectangular module called the LKM,i think it is marked as the LKM.Inside there will be mini relays for your headlights..if you search here or google LKM i bet you get many answers.E34.net has pictures on the lkm and the fix for headlights which go out (or dont turn on)