How to get Vector ID and Product ID using a code? (Raw input)

If we need to configure a specific controller in the project, we can keep data about it and enter it manually. But what if the game needs to recognize and support multiple controllers? For example different radio controllers for a drone simulator? Is it possible to get data about the controller through the code?