Oh, I have just noticed Jhd.Honza was talking about turbo Led, as in his post he says "some Led's".
Turbo Led can be turned on-off with the turbo switch, I don't think that can be achieved by code.
Other Led's (Num Lock, Caps Lock & Scroll Lock) are the ones which can be controlled tru code.