I do not have HTC Vive or Occulus, but I was able to plug in my PSVR on this laptop(Maybe I should buy Vive with recent $150 price mark down at a local computer store).
I haven't configured how to track head movement yet, but seen people playing VR game on GTX1070 based laptop with PSVR.
The GTX1070 in this lapotp is almost same as full desktop GPU, not m(mobile) version as in 980m. It should handle VR with no issue.
With 512GB m.2 ssd, I was able to install following games: Mass effect Andromeda, NBA 2k17, StreetFighter 5, GTA 5, Bayonetta 2, Mirror's Edge Catalyst, Fallout 4, and Witcher3.
It has an option of adding 2.5 inch SSD or HD, but you'll need to buy a special SATA cable and a HD caddy which runs about $50 each on HP website (or you can find cheaper alternative online, but need to research).
Don't expect to get good battery life out on this one. Mine last about 3 hrs and if you play game, it would last about an hour. And you cannot just buy cheap 3rd party power adaptor, for it has 200+ watts rating.