How figma files identify library updates?

Hey everyone, I was wondering how Figma files identify the version of the libraries being used and if we can get this info in the REST API