You don't use the wifi hotspot and connect by USB. It's one or the other. The wifi hotspot will drain the phone battery. USB maybe best. With a Samusng it is done through the software on the PC/laptop not sure about the HTC.
How to get Windows 10 now: how to download and install Windows 10 even if GWX.exe is missing