Obtain nodes in contact and modify boundary condition(s)

Hi,
I am currently using a general surface-to-surface contact approach during the indentation of one part into another. Is there any method available to obtain a node set corresponding to the nodes on the slave surface that are currently in contact with the master surface (during an analysis)?

I have come across the LSTATE flag in the documentation (https://help.3ds.com/2019/english/dssimulia_established/simacaeitnrefmap/simaitn-c-userinteraction.htm?contextscope=all), which may be able to provide this information if it is accessible on a per-node basis, however it appears to only be applicable if one uses a UINTER subroutine (unless I am mistaken).

My goal is to modify the enforcement of a boundary condition depending on whether nodes are in contact or not. Is this possible?