if it’s a shared Drive, take a look at the information I shread here:
If it’s only a shared folder, you might need to use the HTTP Request node and build a custom request.
The request URL would be something like this:
GET https://www.googleapis.com/drive/v3/files?q=sharedWithMe=true&includeItemsFromAllDrives=true&supportsAllDrives=true
If my reply answers your question, please remember to mark it as a solution.