Is there a way to find out what type of controller is currently being used?

I want to make a button prompt in a widget, that changes depending on what type of input device is being used (XBOX - A, PS4 - X).

(I’m trying to avoid building the engine from github because i’m low on storage space, so i can’t make changes to the source code).