How can I know an instance node of a library component is outdated

when I using plugin api to inspect an instance layer, is there anyway to detect whether the instance is import from the old version of the library component.