How to check which VR Hardware type is being used?

Is there an API call (preferably in Blueprint) to get which type of VR hardware the player is using? Like, if I want to know if the player is using the Rift or Samsung or SteamVR, how can I check?

if ( GEngine->HMDDevice.IsValid() ) //check pointer is valid
{
EHMDDeviceType result = GEngine->HMDDevice->GetHMDDeviceType();
if ( result == EHMDDeviceType::DT_OculusRift ) UE_LOG(LogTemp, Warning, TEXT(“Device is Rift”));
else if ( result == EHMDDeviceType::DT_GearVR ) UE_LOG(LogTemp, Warning, TEXT(“Device is GearVR”));
else UE_LOG(LogTemp, Warning, TEXT(“Device is Other”));
}
else UE_LOG(LogTemp, Error, TEXT(“No device found!”));

Thanks. :slight_smile: