Prospective constraints on neutrino masses from a core-collapse supernova