Hi:
I know this is an old thread, but I've just discovered that if you have 7.3x of the engine, you can use DBINFO function to obtain the version, so I thought I'd share it with you.
To obtain version info in various forms:
1) return the full server name:
SELECT DBINFO("version", "full"

FROM systables where tabname = "systables"
returns
Informix Dynamic Server Version 7.31.UC2
2) return the major version
SELECT DBINFO("version", "major"

FROM systables where tabname = "systables"
returns
7
3) return the minor version
SELECT DBINFO("version", "minor"

FROM systables where tabname = "systables"
returns
31
4) return the level version
SELECT DBINFO("version", "level"

FROM systables where tabname = "systables"
returns UC2
5) return the operating system type:
U = Unix 32 bit running on a 32-bit OS
H = Unix 32 bit running on a 64-bit OS
F = Unix 64 bit running on a 64-bit OS
T = Windows NT
SELECT DBINFO("version", "os"

FROM systables where tabname = "systables"
on my system, returns:
U