How to identify Monitors and Joysticks

I was going to link to this issue:

Then I realised you wrote that question as well!

The issue I linked to for monitors remains open:

For joysticks there is a function for getting a GUID: glfwGetJoystickGUID.