D&D 3.5 has many ways of being a creature that's not a full-blooded member of any one race. From Half-X templates, to X-blooded feats, to Planetouched races and many more. Many of these creatures are similar enough to a pureblooded race to disguise themselves as such, or have the inborn ability to shapeshift in order to hide their nature.
With that in mind: Is there any way to determine a creature's ancestry? I am aware of a Pathfinder spell called "Analyze Ancestry". This is roughly the effect I am looking for, though for my purposes it is enough to simply say "This creature is part X, part Y, and part B" for example. I know Pathfinder is considered to be mostly compatible with 3.5, but for the purpose of this question I am looking for official 3.5 material only. The source doesn't matter, as long as it is official, WoTC approved for 3.5 (Including 3.0 material that has not been updated).