When buying a used S-Class W220 320CDI

Hi have a general question. Is there a possibility for Mercedes that the KM stand, inspection dates, possible pre-damage etc. can be obtained from the PC in every branch office? Or is the whole thing dependent on the branch office and there is no federal database? What can I clarify before the purchase still everything in order not to make a wrong purchase?