Haven't worked with Windows for years, but this should work:
The virtual machine needs to use a bridged network instead of NAT. This can be configured in virtualbox. Then you use your router to block the IP of your windows host and only allow the IP of the VM.
No idea if android studio also supports bridging though.
Edit: This also has the advantage, that it can't be circumvented from inside your windows host