from arcpy mapping, the project has a "defaultToolbox" property which you can get or set
ArcGISProject—ArcGIS Pro | Documentation
defaultToolbox
(Read and Write)
The project's default toolbox location. The string must include the toolbox's full path and file name.
code examples are at the bottom of the help topic
... sort of retired...