Actually, there is software that tries to do exactly that. The concept is called "spectral balancing."

If you use an FFT graph (such as SPAN), you can see what sort of balance curve that an mastering engineer would be aiming for. You can then use a multi-band EQ to target your own music to match a similar curve.

There are a number of programs that will attempt to automate this for you. You can either select a reference curve from the library, or have the software build a reference curve for you from a song.

Here are some examples of reference EQ curves for various styles.

One of the first programs that claims to be able to do this is Har-Bal. You can find an on-line tutorial program explaining the process here.

Voxengo's CurveEQ also claims to do the same thing.

I can't say how well either of them work. I've never tried Har-Val, and I can't figure out how CurveEQ is supposed to work...