Windows 10 can restrict installation of apps by allowing only those that are available on Windows Store. This may be a bit restrictive as many Windows programs are not available on Store but it can be a suitable option for PCs in a specific environment like kiosks etc.
Here’s how to apply these restrictions :
Access Windows 10 Settings (shortcut : Windows key + I)
Choose Apps > Apps & features.
From the Apps & features section, change the option to Allow apps from the Store only.
Also, a notification can be set if external apps are to be installed. This can be done by choosing Warn me before installing apps from outside the Store.