My hard drive is really messed. So I need to reformat it (hopefully that works).

But after several moves, I can find the windows xp cd activation code. I can run windows only in safe mode. Is there anyway to find it in the registry?