Or in the xbox itself at settings, to connect it with a USB in the backslot of the xbox or you could download Xbox App https://www.microsoft.com/nl-nl/p/xbox-accessoires/9nblggh30xj3?activetab=pivot:overviewtab
it's the Accessoires App for xbox controllers, and you can set your settings from here, this is the best option.
for a xbox controller windows have a already built-in software for that, or at the moment you plug it in, it will ask you to install this, do not use any other software or driver, because there is no such thing for xbox controllers, only with aftermarket controllers you will need this, nit with a xbox controller (benz of controllers xD)
Plug in your controller, open the app, and select Configure.
Let us know if this helped.