I don’t think there is any query methods for mouse features, though you should be designing for possibilities with stages of requirement, such as if there is no middle mouse available place an not so important but handy function there, you should design for the minimum of inputs otherwise place requirements upon your users…
Anyway, with that being said, these should be helpful…
Good Luck.
For an idea of Input design, consider Blender3D, they design Middle Mouse and ‘cough’ right mouse for Windows and Linux but for Mac they subside the functionality to a keyboard input…
Also Welcome to the forums.
Adjusted your title and category.