You must have use a user who is grant the possible of administration facilities to obtain that information. I think you are using SE so, i dont know how you can know that... I thougth you were using Informix On-line V. 11.x
For informix SE your databases are in directories of SO, so maybe using a shell script if you are using UNIX/LINUX.