UGameplayStatics::GetPlatformName

Returns the string name of the current platform, to perform different behavior based on platform.