I don't know if this would work for headlights, but when I had condensation in a foglight, I drilled two small holes in the bottom of the light housing (to allow water to drain out). I did this a few years ago and the light still works fine, no condensation.
If I had this problem with...