Is the old machine still working?
Windows has migration software available, but it does not work on everything.
Claims to the contrary are made by companies tht will take your money.
My personal recommendation is this:
First do all you can to separate you data from the programs. Some programs store data inside its own program folder instead of the Documents and Settings area. That is OK for 'portable' programs. Those programs can be put on another partition or drive with no effort.
But not so for programs that fully integrate in Windows. Those kind of programs have to be installed on the new PC.
Second, investigate the windows Transfer Wizard on your new OS.
Windows Easy TransferApplies to Windows 7
I have tried software taht claims to do it all, but it does not do it all.