There is a mod, Prospectors Journal, that does it, but beyond this it sucks for me. I tried it in creative and at some point it stopped recording ore-bearing rocks and its GUI messed up for some reason and became unusable.
So I looked in
MultiTileEntityRock.java and found out that there are already messages for different rocks. But they don’t show up and I can’t find an option to enable it in configs. Is there none or I’m missing something?