Well, first we need to figure out what model your iMac - your upgrade possibilities depend on that. So, when you go to the Apple, click on about this Mac, then on more info, what does System Profiler show in the hardware section? I'm on Mountain Lion, so my window may look a bit different, but we need all the info as shown here in the example:
This site contains user submitted content, comments and opinions and is for informational purposes only.
Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site.