What exactly do you mean with PK name? The fields which make up the PK?
IEntityMapTargetElement is the target an entity is mapped on. You miss fields if you look at that object, you should look at the EntityDefinition object. That object contains a PrimaryKeyFields collection.
In an entity which is in a hierarchy of TargetPerEntityHierarchy, the PK fields are defined in the ROOT of the hierarchy. All other entities (thus subtypes) have no pk fields defined, as these are in the supertype and inherited from the supertype. So test on that.
For the other situations (targetperentity and no inheritance) the pk fields are in that collection.