Yes that is using MS Graph which refers to Document Library as Drives and files will be DriveItems.
This will get all of the drives for the site:
_api/v2.1/drives
You can use this to get the DriveID
You can filter by the name of the document library/drive:
_api/v2.1/drives?$select=id, name&$filter=name eq 'Documents'
If you ParseJSON this output then you can get the Driveid.
To get the DriveItemID is not as straightforward. You have to address it through the list.
_api/v2.1/sites/{hostname},{siteId},{webId}/lists/{ListId}/items/{ItemId}/driveitem