No maya uses a python bundled inside maya, you can use a maya installed on machine if you wish, but by default maya uses the installed python even if you isntall your own. And certainly switching to 3.x will not work, atleast not very well.
how to query the version ?
Well you can look it up in your maya manual its listed there. but also you can just ask your maya python commandline:
import sys
print(sys.version)