Well, Time Machine can backup everything, or...
Locations of the iTunes Library to copy...
http://support.apple.com/kb/HT1660
For iPhoto...
Open your home folder, then the Pictures folder within. Find the iPhoto Library package, and click once on it to select it. Drag and drop it to an external hard drive, or copy the whole Pictures folder over.