Is there way to find all detached nodes in the file ?
No, detached instances become regular frames, they don’t contain any info about their previous state of being instances.
The only thing that comes to mind is you can use version history for that, but if instance creation and detachment happened within one version, then it won’t be possible to detect.
There was a nice tip from Uber’s team on the last Config – adding Signature pixel to each component, that stays there also if the component is detached. Check it here. It could help for what you want to achieve.
That’s exactly how we do this. But I was looking for something built-in for the components without any trackers inside. Thank you!