jcb42087 :
I don't have a recovery drive or anything but my boots show up in this order:
Hard Disk
Cd did
USB floppy
Network
USB hard disk
USB Cd did
I ran the diagnostics in the F12 menu at the startup screen and it made my computer make some weird noises and also the only thing it had trouble testing was the hard drive. It said no hard drive detected. Also how would I go about getting my product key for windows? It came with Windows 7 and I would prefer to keep windows 7.
Do you see the model of your hard drive (HDD for short) in BIOS anywhere? If you see HDD model - your hard drive is alive, but it has file system messed up (MBR is missing), so you can reinstall Windows OS from disc or USB, if BIOS doesn't show model of your HDD - it is plain dead.
I don't know exactly where, in BIOS, it would show your HDD model, you have to just open all BIOS tabs, looking for HDD model. I don't know, which model Dell used for your PC, but generally it is either Seagate (Dell use this company a lot) with model number starting with ST, or Western Digital, with model number starting with WD.
There are recovery software that can be used to extract DATA from busted HDDs if HDDs are spinning, but it is a long painful process. So one step at the time.
Now regarding Windows OS.
Which OS you had when PC crashed? Was it Original Windows 7, or you already upgraded to Windows 10?
In any case, your Windows serial key is embedded in the motherboard (MOBO for short), I think is BIOS, so when you install from the disc or from USB, installation will recognize embedded serial and will proceed.
The most important thing is to install exactly the same Windows version you had.
Meaning, if you had, for an example, Windows 7 Home 32bit you would not able to install Windows 7 Home 64bit or similar. Just an exactly the same version as you had factory installed.
And Last question is. Do you have another PC or Laptop (or you can borrow it or borrow time to get Windows image from Internet) with DVDRW (DVD optical drive, which can write/create bootable Windows disc). If that computer doesn't have DVDRW, you would have to waste USB flash drive to create USB Windows OS bootable drive. USB has to be more than 4GB size, I would say 8GB is more than enough. You would not be able to use this flash drive for anything else (I think) after Windows installation, os you don't need anything fancy here. If your XPS has USB 2.0, USB 2.0 drive is enough, if it has USB 3.0, USB 3.0 drive is needed, so the installation process will be faster, but USB 2.0 will work as well, just it would take much more time to do this.
So, let me know exact Windows version you had and I will provide you with legitimate download link (they still exist even for Windows 7). You can get it from Microsoft directly only if you know your serial key, but you don't, so no Microsoft at this time.
Yvor time is up.