I'm pretty sure that moving the license from one computer to another is verboten, so the new computer will probably have you call Microsoft when you try to activate Windows. Just tell them that you replaced your hard drive and motherboard.
Or, better yet, install Ubuntu Linux. It's free and much faster than XP. You can do with Ubuntu all the things that you can do with XP - documents, spreadsheets, web, email, multimedia, etc.