It's complicated. We can calculate the dissonance (e.g., harmonic entropy) for specific note combinations, but even the best models of consonance and dissonance don't correspond perfectly with human ratings -- nor can be applied to complex sounds.
There isn't a meter capable of showing how consonant or dissonant a song is, at any point in time -- or for the song as a whole.