Once you get a copy of XP, follow the instructions on
this page. Those instructions were copied from the Microsoft site, I just can't find the original Microsoft page.
If you plan to do it that way (you won't lose any data), remember that you have to buy a copy of XP Pro. If you buy XP Home, its product key won't work with the XP Pro that's already installed.