It might be too late for this, but if you boot into safe mode the first time you boot up the system with a drive from a different system, it will usually sort things out.
Just to explain in more detail:
With DOS and even Windows 98, moving a hard drive from one computer to another was not a complicated task. You usually could boot into DOS or Windows and then update any drivers that needed to be changed.
Starting with Windows 2000, Microsoft added the HAL or hardware abstraction layer. While this speeds up and improves many things, it makes it very difficult to move a hard drive with Windows installed on it to different hardware.
The best thing to do if you must do this, is to perform a clean install of Windows and the application software on the new system.
If that is not an option, the next best thing to do is prepare the drive to be moved from the old system by opening device manager and removing every hardware device that will be different on the new system. Then, when you boot the drive on the new hardware Windows will usually find all the new hardware and install the correct driver. Or, at least ask you for the disk to install the driver.
The third option, is to boot into safe mode. This works most of the time if you boot into safe mode the FIRST time you boot the old hard drive on the new hardware. Windows will spend a fair amount of time disabling key system hardware that is different on the new system. Once Windows completes the boot into safe mode and the desktop is present, you can shut down and boot back up normally.
In your situation, you may need to boot from the Windows CD and perform an in-place-upgrade. This is a repair install that keeps most of the registry and thus installed programs intact.
Then, there is the issue of licensing. The EULA for most OEM systems like Dell and HP does state that the license for Windows and any installed software is tied to the original hardware and cannot be transferred to a different computer. As long as the new computer has a valid license sticker for the same or newer version of Windows, you should be okay.
Chas