Harry was hit with the sickening image of Hermione's name being next to Ron's on that old clock that Molly Weasley used to have in her kitchen at The Burrow. This must have been the spell that told the clock how the family members were doing.