If you want to use it on 3 machines - there is a family license - $150 I think- for 3 machines - you would need to check MS store for details.
You will be fine to use an upgrade key if you have an oem pre install on the machine.
Whichever way - you need a license for each machine.