It's a late 2012 iMac.
You'll notice it's considered Obsolete by Apple. Also that's the year they started gluing the screen to the computer case instead of holding it in place with strong magnets. That makes it extremely difficult to get the screen off without damage. Apple won't work on it but an Authorized Apple Service Provider might. It's iffy. They will want to get the drive themselves so won't use any parts you provide.
You've gotten a good 10 years service out of it and I recommend you replace it with a new iMac, one that will be 3-4 times faster that the one you got and will run the newer systems. Of course you will have to replace any 32 bit apps with 64 bit replacements or alternative apps. To see which of your apps will have to be replaced download and run the free GO64 app.
If you go ahead with replacing it yourself contact Customer Support at OWC (MacSales.com) to get the correct SSD and any needed cables, etc. for the installation. Also ask about gluing the screen.