I don't remember anything like it, but a quick Google search found a 3rd party d20 RPG with it
http://zoriarpg.com It's in the 'BLUE' book, but when I tried to post the link, it just turns my post blue.
To save you the trouble of downloading the entire pdf, here's just the spell
Detect Elves
Divination
Level: Cleric 2, Sorcerer 2
Components: V, S
Casting Time: 1 standard action
Range: 60 ft.
Area: Cone shaped emanation
Duration: Concentration, up to 10 min./level
Saving Throw: None
Spell Resistance: No
This spell functions as Detect Evil except it reveals Humanoid Elven creatures, ignoring
alignment. This spell does not show alignment of creatures but does indicate the creatures power
level, compared to yours.