XP comes with a program to transfer settings and user files from one computer to another. I think it can also be used when reinstalling or upgrading the same computer. Unfortunately I can't remember what it is called right now, and I'm not using an XP machine at the moment. You could try searching the Windows help for moving or tranferring settings.
goates