Titanium Platform Version Check :

var version = Ti.Platform.version,