How to remove hardened dough from hair?
Ouch, sounds rough.

Soak it in cold water.  This may be awkward; depending on how thick the dough is, it might require soaking it for an hour.  But it's really the best way.