Detect controller type (Bear with me!)

Hello, I can detect between Keyboard & Mouse and Gamepad just fine and can switch between them when needed.

What I’d like to do is be able to tell if a gamepad is an Xbox One / Xbox Series / PS4 / PS5 controller.

InputDevice.displayName just says Xbox Controller for all xbox controllers, and Wireless Controller for PS4. (I don’t have a PS5 controller yet.)
If I check the InputDeviceDescription, both xbox devices only contains interfaceName = XInput.
My PS4 controller contains interfaceName = HID, manufacturer = Sony Computer Entertainment, product = Wireless Controller and version = 256.

Is there a way to tell what the device is? (I know I can just use the device the player is playing on when using consoles, but on Windows/Mac the player could be using any device.)

This should help:

    private ActiveInputType SetActiveInputType()
    {
        if(playerInput.devices[0] is Mouse || playerInput.devices[0] is Keyboard)
        {
            return ActiveInputType.keyboardAndMouse;
        }
        else if(playerInput.devices[0] is XInputController)
        {
            return ActiveInputType.xbox;
        }
        else if(playerInput.devices[0] is DualShockGamepad)
        {
            return ActiveInputType.playstation;
        }
        else if(playerInput.devices[0] is Touchscreen)
        {
            return ActiveInputType.touch;
        }
        else
        {
            // If you are using a generic controller, it should default to xbox icons.
            return ActiveInputType.xbox;
        }
    }

how about switch?