Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Upgrading the graphics is theoretically possible but in real world, you're better off selling it and buying a new one. RAM you can buy from OWC for example
 
How much ram do you have now. That will dictate how much more you can go.

as for the graphics, that's not upgradeable on an iMac. What you have is what you get.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.