There's a connected() method in the underlying rosserial_client API: https://github.com/ros-drivers/rosserial/blob/jade-devel/rosserial_client/src/ros_lib/ros/node_handle.h#L286-L288 ; it looks like it does this by monitoring the time sync messages, and the timeout is about 10 seconds.