Have you considered using
SysPrep ?
It will prepare you system to accomodate new hardware without doing a repair install. Make sure you download the correct version for XP.
Basically, it does what others have said, uninstalls your hardware drivers. It then, when booted, goes thru that portion of the repair install that would load your hardware drivers.
It does all those manual things recommended here programically. It's made by MicroSoft for use when deploying a windows image thru out a business to different hardware set-ups.