You can use the group policy editor to configure a policy—Do not allow pinning programs to the Taskbar. Once disabled, it will not allow apps to pin themselves to the taskbar. The policy is available under User Configuration > Administrative Templates > Start Menu and Taskbar.