My friend i think this information is available in the LEF (Technology file ) before u start
and after u finish u can dump out a DEF which can also have this info
hi natg9,
Lef contains information about the all available layers, but user can restrict to some of the layers only, i think the second option to dump out the DEF and can check about the max layer used.