How to programmatically check oracle version
Unfortunately that routine is not public. You might hack your way around that. Otherwise this page contains some alternatives;
https://forums.oracle.com/forums/thread.jspa?threadID=1089440&tstart=15
I specifically like the one that reads the TNSPING.EXE binary and determines the ClientVersion from that ;-)