If you look in the Mac App Store app, you may be able to get High Sierra, but you may need another version of OS X first.
How to upgrade to macOS High Sierra - Apple Support
What are all the steps to upgrade from Snow Leopard?
What is the highest compatible OS with my iMac 10,1?
Do I need more memory - more than 4GB?