Firstly you need to know if the connection for the laptop is IDE or Sata. Check the specs of the Dell model and that should tell you which to buy. Should be a prob upgrading to Wins 7 but increase the ram to 4g. I suspect the laptop comes with 2g?
How to get Windows 10 now: how to download and install Windows 10 even if GWX.exe is missing