Is it possible to get the monitor's refresh rate?No. But if you use a LCD monitor (who doesn't?), it's 60 Hz.
Also, would it be advisable to check the desired framerate with the refresh rate to use vsync if they are the same, but use setFramerateLimit() if not?Why would you want a framerate different than the refresh rate of your monitor?