Assuming you are making your game fullscreen, then you can simply lookup the ViewportRight(0) and ViewportBottom(0) to determine the screen resolution. Then you can do some quick math to determine the screen ratio that the player is playing in.
width/height = pixel ratio
for example 1920x1080 = 1.78 = 16:9