If it’s a thick client meaning it’s on local machine where your bot is running, you can use Get Attributes activity to get this tooltip text.
If it’s on thin client like VM, Citrix, RDP etc. it’s hard to get. Installing UiPath Remote Runtime on the Citrix, RDP will be more reliable here!