Can I disable USB Debugging on Android smartpones from Windows via adb.exe?
If the device in question is rooted, you can write to the system settings directly from a shell command in adb shell. The name of the setting to write depends on which Android version you have.

If your device isn't rooted, you can't change the USB debugging setting from adb or any non-system app.