Cmasking_Mask Render Element

How can I use max script to check if render element Cmaskin_Mask has included objects in Monochromatic mode manual selection in objects include/exclude list?

Can anyone point me in the right direction? Or someone has this max script code?

I am trying to make script that check if objects are included in the render element cmasking_mask which I will use later in the post-process.

Thank you.