TWINCAT 2 ADS communication

Hello guys,
I have an old Beckhoff plc that runs on twincat 2 and it has ADS confirgured on it ,
I want to communicate with it using .NET library but i don't know how to check if the ADS got disactivated or not,

Can someone please help me with this Twincat 2 config to find the ADS ,