Download the manufacturers software from the makers of your new hard drive. You want the one that clones the hard drive. have this installed on the computer.
Undo the ribbon and power cable from the optical drive on your computer ( cd drive ). Plug the cables into the new hard drive.
Start windows and then use the software to clone every thing over to the new hard drive.
When done. Take out the old hard drive and attach the new one. Re-connect the optical drive.
The new drive will then be an exact mirror image of the old one.