It doesn't say it can distinguish between different kinds. For flavor reasons I can't imagine a druid that can't tell the difference between a fey and an undead, but by RAW I see nothing that allows for that.
(I looked up the spell, but of course it only detects undead. It cannot distinguish kinds of undead, but different kinds of undead should vary less than, say, undead and elementals.)