Not sure I understand what you mean. Are you trying to determine if some file on disk is a PNG or SVG or if a layer is marked for export and you are trying to see what the export settings are?
Lil' tip: It's helpful to provide some abstracted code of what you have tried so that folks can help ya a bit easier