Get controller model

I need to get the model of controller plugged in (Xbox, PlayStation, etc…).

I’ve read that SDL creates a GUID according to controller model, then the best solution to do what I need is to check the GUID? there is a list of GUID or a rule to parse this string and get the model?

If this is not the right solution please guide me to the right way.

Thanks in advance.