A few headset have a port for grease injection which is an easy way to remove crud from inside. If you have a std headset there is no easy way, you have to disassemble.
When you reassemble your headset, pack it full of grease and put a section of inner tube around the lower race to seal out the crud.