One of simple ways is to simply read the javafx.properties
file located in your $JAVA_HOME/jre/lib
directory.
I have Java 1.7 u9 installed at the moment. JavaFX bundled with it is v2.0.3 so the abovementioned file contains the following line:
javafx.runtime.version=2.0.3
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…