Analyze Ancestry

In a setting where polygamy is common and smiled upon by many gods, Analyze Ancestry is invaluable for inheritance verification.
The identities of the target creature’s parents are instantly revealed to you. You know the name, species, and other identifying characteristics of both of the individual’s parents.
===At Higher Levels:===
When you cast this spell using a spell slot of 3rd level or higher, an additional generation of ancestors is revealed to you for each spell level above 2nd. (For example, when using a 3rd-level spell slot, you know the identities of the target's parents and all grandparents; when using a 6th-level spell slot, you know the identities of the target's parents, grandparents, great-grandparents, and great-great-grandparents.)