You can use those in c++:
GEngine->HMDDevice->ResetOrientationAndPosition(Yaw);
GEngine->HMDDevice->EnablePositionalTracking(IsEnabled);
In Blueprint, you have the Reset Orientation and Position node under tyhe Head Mounted Display category,
You can also use console command HMDPOS ENABLE or DISABLE to change positional tracking settings.