Query a Datasource Directly from Panel Plugin React Code

This answer suggests that you can access the data source instance using the getDatasourceSrv:

Would that work for your use case?