If the yellowing/discoloration is on the inside of the plastic, it may have been caused by normal heat during operation. There's not really anything you can do for that. If it's on the outside, it could have been caused by exposure to the room's ambient light source (fluorescent?) or - if it sat near a window - it could be the result of continued exposure to ultraviolet light. Polishes for plastics have been available for years, and were often carried by audio/stereo retailers. They were used to remove fine scratches from the clear plastic cover over turntables. While they might restore the fading lustre of the iMac's housing, removing the yellowing may not be possible at this point. There are a few automotive detailing products designed to restore plastics that have yellowed or acquired a haze, from constant exposure to ultraviolet light. The large lens over the headlamps is a typical candidate for the product. Because these products may contain petroleum distillates, the iMac's plastic could be softened by it. Since I've never tried it, I'd want to use a junk iMac housing for testing purposes.