A way to disable gamepad/joystick

Is there any way to restrict or detect players from using gamepad/joystick on a server?

Why? You are not supposed to.

So there’s no way for me to detect if <client> is using a controller?

You could check for controller convars.