If you replace the hard drive on a 2nd hand device, there are no longer any Windows 7 downloads from Microsoft and those downloads were not for OEM licenses anyway.
You would have to find someone with the exact same Windows 7 Edition Retail Licence, borrow it, install it using the product key on the 2nd hand device you have just bought etc.