You can detect this using the ContainingObjectName property of the field object in the Fields collection of the entity. It will return the name (E.g. CustomerEntity) of the entity that contains the field. In your case 'Name' will return "PersonEntity" and Password will return "EmployeeEntity".
The information walaa talks about is the name of the entity the field currently is in. This isn't available at this time, but you want the information that is available