To get the Drive ID, open Google Drive in your browser and navigate to the folder or shared drive you want to use. The drive ID is the long string of letters and numbers in the URL after /drives/.
How do i get the Spreadsheet ID?
You can get the Spreadsheet ID by navigating to your Google Sheet and copying the ID from the URL (the long string between /d/ and /edit).
How do i get the Worksheet ID?
You can get the Worksheet ID by opening the specific worksheet you want to use and copying the ID from the URL (appears after #gid=).