Hello,
First time you should check if your system is compatible with Windoes 7, check Windows 7 requirements.
How to install Windows 7 over XP
First steps is to download and run the Windows 7 upgrade advisor, second step is to moving files and settings, and gathering your program discs, and the last step is to install your Windows 7.
All the necessary steps you will can find here