Right now, there's the blocks()->getGlobalBlockObjects() function but when used inside a global block, obviously creates an infinite loop.
Use case: site logo is displayed in both header and footer. Both are global blocks, however the logo data source is the header block.