Plan-based limits for product media how to access the limit and current usage in graphql?

Hi, I’ve been searching through dev api docs but found nothing. Before the upload of media I want to be sure the customer has space. Where I can get it through API?