So if your HDD is still "Working" then you would be able to re-image the drive and keep it as your main (C) drive or as a data drive.
I am not a big fan of pre-built machines but I took 5 seconds and looked at the "iBuyPower" website and found you a desktop machine for $900 that would meet your needs...
Processor :: Intel® Core™ i5-9400F Processor (6x 2.90GHz/9MB L3 Cache)
Processor Cooling :: iBUYPOWER 120mm Addressable RGB Liquid Cooling System - Black
Memory :: 8 GB [8 GB x1] DDR4-2666 Memory Module - Certified Major Brand Gaming Memory
Video Card :: NVIDIA GeForce GTX 1660 - 6GB GDDR5 (VR-Ready)
Motherboard :: ASUS TUF B365M-Plus Gaming with WiFi -- RGB, 4x USB 3.1 Gen 1, 2x USB 2.0, 2x M.2 [Intel Optane Ready]
Power Supply :: 600 Watt - Standard 80 PLUS Gold - FREE Upgrade to 600 Watt - Thermaltake Smart Series - 80 PLUS Gold
Primary Hard Drive :: 1 TB Hard Drive -- 32MB Cache, 7200RPM, 6.0Gb/s - Single Drive
https://www.ibuypower.com/Store/Intel-Mini-PC-Configurator