Manage input devices

Hey! I am making a game for 4 people who play on the same device. 1 on keyboard and mouse and 3 on gamepads, or 4 on gamepads. Is it possible in Unreal Engine 4 to differentiate input from different devices for different players? Is it possible to track them, for example, when one of the gamepads suddenly turns off?