You need to make a call to the canister_status
on the management canister with a caller that is listed as a controller of the respective canister.
Here @peterparker shared a snippet of how to do it using agent-js: How to make IC Management API canister_status call with @dfinity/agent?