There are SKILL functions to get this information in IC5141:
techGetStreamLayer
techGetStreamLayers
techGetStreamNumber
and a few others - they're in the <IC5141instDir>/doc/sktechfile/sktechfile.pdf manual.
Note that these aren't there in IC61, because the stream numbers are no longer part of the tech file in OpenAccess.
Andrew.