The 2007 Minis are stuck with OSX 10.7 Lion.
You can boot into Recovery Mode using Command + R where you can perform a clean install onto a new drive (best to connect it externally until setup is complete). Or you need to boot from a Retail version of OSX 10.6 Snow Leopard which can still be purchased direct from Apple here. I don't recommend using OSX 10.7 Lion if it will be connected to the Internet as it has a critical unpatched vulnerability.
The 2007 Mini can be upgraded to 4GB of RAM (2x2GB) although OSX may only recognize 3GB. It probably isn't worth the money. It is possible a firmware update included with OSX 10.7 may be required before it will be able to use the 3-4GB.
I really don't recommend putting any money into the 2007 Minis.
The Late 2009 Mini can go up to OSX 10.11 El Capitan.
This Mini can unofficially supports up to 8GB of memory (2x4GB). You may need to have a system firmware update installed which was included with OSX 10.7.5 before being able to use the upgraded memory. You might be able to get by with just the original 4GB of RAM depending on how you will use this computer. I'm not sure it is really cost effective to purchase any memory or hard drive upgrades for the 2009 Mini.
The 2010 Mini can actually go up to OSX 10.13 High Sierra.
This Mini can unofficially support up to 16GB of memory (2x8GB). I would suggest purchasing a single 8GB module and retaining one of the original Apple modules. Again, the Mini may need a system firmware update included with OSX 10.7.5 before being able to use the larger memory module. It might be worthwhile to upgrade this Mini since it still supports are fairly recent OS.
it is highly recommend to purchase your memory only from Crucial or OWC for the best chance of good compatible memory since Macs can be very picky and both vendors guarantee compatibility if you purchase the exact parts recommend on their respective websites.
You have several options for installing a later version of macOS onto the 2009 and 2010 Minis. Probably the best way is to download the macOS installer from the App Store. I would highly recommend creating a bootable macOS USB installer just in case something goes wrong with the upgrade. You can use these instructions to create a bootable macOS USB installer:
https://support.apple.com/en-us/HT201372