If it's enough to puddle at the bottom, remove the lamp and dump it out. While it's out, run a bead of sealer of some kind around the perimeter where the (presumably) glass lens is glued to the (presumably) metal reflector.
If you have the time, while the sealer cures set it out in the sun to let the last bit of moisture evaporate. If for some reason you need it back in place quickly, re-connect the bulb without the rubber boot in place and turn the lights on. This high heat will evaporate the rest pretty quickly.
All this assumes a "standard" H4 lamp setup with a clipped-in bulb and a large rubber boot to seal out moisture. Any other design might vary the procedures, but the concepts remain the same.
If it's truly a "sealed beam" version of the H4 like the old Cibié Bobi lights were, the only way to get rid of the water is to find the hold it got in from, drain it out slowly the same way, then turn the lamps on to generate the heat to evaporate the rest. Then seal it up after the fact.
Good luck. Hopefully it's not a cheap set that hardly has any glue on the lens. If so though, the bead of silicone sealer will act as a backup glue to the original.
Hopefully..
Paul