Find out if NAS or Client runs code?

how to get the information if a nas or a client is running a piece of code ?

IF GUIALLOWED THEN