Hi Peter,
Yes, it is possible, depending on the type of Arduino.
Below is a link to an article I posted. The ‘ST_Device_Toggle’ sketch in the library is an example of how to send commands to turn off/on a switch device in ST.
In your case, the easiest way to implement this in ST using this library would be with a ST virtual switch that the Arduino would change to state of based on the lock state.
Todd Austin’s Virtual Device Creator edge driver can create a virtual lock which would also work, though that would require generating raw JSON command that the Arduino would send to change the lock state. See the ‘ST_RawJSON_Command’ sketch for an example of sending raw JSON