In FOSS maybe but in the commercial atmosphere there’re some interesting tools that are not complete yet but follow good path
For instance, https://avanova.de is somewhat automatic
Or EC3 (https://buildingtransparency.org/dashboard) in LCA area which is promising, however, still, it’s not complete and just support Design phase
Or One Click (https://www.oneclicklca.com)
All in all, in both 4D and 5D and also LCA and LCC what you need is “automatically recognize building elements” and other data/information