Better home inspections will remove breaker panel box or at very minimum use a thermal camera to check if the breakers are all reasonably warm. Usually both. But that still doesn’t really tell you much about whether something is done to code or not.