Select About This Mac from the Apple menu. Depending on what OS X version you have, the info display will vary, but generally the first summary screen will be in the format of "iMac 27" (Late 2011)" or such. If you then click on the System Report button, Hardware Overview will display a ModelIdentifier in the format of "Mac mini6,2" but for your Mac.
II put his info into Mactracker.app to get a confirmation of the highest supported RAM level or OS X version. Or just go to reputable store site to get get help with exactly what type of RAM you need. I've used OWC (Other World Computing) and Newegg for many years now, without any issues. Don't be tempted to use eBay or other cheap sources - you're asking for problems.
Good luck!