Dissecting core-collapse supernovae using neutrinos