CLI to check whether a member's tip revision is already on a devpath
Take a Look at the "si locate" command.
It gives you the information where (on which dev path) the requetsted member is used in which revision.
You can also use the "si rlog" command to identify the head revision for a certain member.
combining These two command in a script should do the Job.