Hmmm.... A good question and one I have wondered about myself. The law says that if you have HIDs fitted then you must have a self-levelling suspension of some sort and a headlamp cleaning system. This is definitely for cars, but I don't know if it applies to bikes too. I'm guessing it does though as I can't find a manufacturer who fits them as standard. They shouldn't fail an MOT though as that checks that the lights work and the beam pattern is ok. The chances of getting in trouble with the law over them is negligible, but you never know what could happen with an insurance company should they have some sort of factor in an accident (and one of their standard questions is if you had your lights on).
You'd be very unlucky to find a cop that knows anything about HID on bikes, and is willing to prosecute you. I don't even think VOSA would do anything about it at stop check sites, and they're the superpower when it comes to Vehicles.