You are possibly being more limited by the version of the operating system (OS X 10.2.8) than the Mac itself.
Latest version for 10.2.8 is iTunes 6.
Depending on your exact model of iMac, you could upgrade to a later version of OS X, which will in turn support later versions on iTunes. Depends on what you want to do with the Mac as to whether it's worth it.