It's actually called an AppIcon. I think it's kind of hit or miss as to how to change them. Some programs default to the actual program icon, others pull icons out of Envarc (like Miami). There's probably a few that are hard-coded into the program.
Try using SnoopDos to see what's getting loaded from disk when you iconify the program.