After downloading and installing the touch pad driver on the official website according to your computer model, you can find this option in the touch pad control panel
Hello! After correctly installing the touch pad management program, double click it to open it. It can be set to disable the touch pad when the external mouse is connected, and select Open.
On Dell computers, to automatically close the touchpad after inserting the USB mouse, you need to enter System Settings.First open the Start menu, then search for Device Manager, find it and click it.Find the input device or mouse and touch pad options in the device list, expand and right-click your touch pad, and then select Properties.Under the Advanced tab of the new window, check Enable to disable this device when connected to an external mouse.Save the settings.In this way, the touchpad will automatically close every time the USB mouse is inserted