You'll find all of your music neatly organized here: /Users/username/Music/iTunes/iTunes Music/Music
Another problem is going to be iPhoto. I've cropped, rotated, geotagged, sharpened, level-adjusted, and done countless other things to my thousands of pictures. They all also live in some database which is effectively opaque. While there's probably some way to get it out, it will be far from trivial.
It's pretty trivial:
http://macs.about.com/od/appleconsumersoftware/ss/Iphoto-Lib...
You can export the original or current versions, as well as converting to JPEG, TIFF, or PNG, retaining location info, metadata, etc (depending on the chosen format). Exported photos can be assigned filenames by title, original filename, sequence, or album name with number.