How to know if model elements are aligned and locked to other elements in the project

hello,

I am wondering if it is possible to know with Dynamo if any model element has been aligned and or locked to other elements in the project and which ones are those.

Thanks,

Ruben Vivancos