Is there a program that could compare two audio CDs if they are the same?

I ususally make duplicates when I am compilating some of my songs. Over time, some of those songs get compilated again in another CD.

For example:
CD1, song11111, song22222, song33333
CD2, song11111, song22222, song44444

Rather than playing each CD, I would like to run a program and compare if they are exactly the same.

Thanks