The GetLogicalProcessorInformationEx function returns a struct SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, which has an EfficiencyClass member. This is the info for the EfficiencyClass member:
If the Relationship member of the SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX structure is RelationProcessorCore, EfficiencyClass specifies the intrinsic tradeoff between performance and power for the applicable core. A core with a higher value for the efficiency class has intrinsically greater performance and less efficiency than a core with a lower value for the efficiency class. EfficiencyClass is only nonzero on systems with a heterogeneous set of cores.
It may be possible to obtain P and E core counts by using this information.