There is no RPC call for querying rpctimeout, so unless you somehow get the node's bitcoin.conf file, the only method I can think of is if you spoof a slow internet connection like calling bitcoin-cli from a virtual machine with a throttled network interface, enough to trigger the timeout, and measure the time it took using something like
time command in bash.