You can use the getFileDetails method available in the Node SDK in order to get the name of a file before downloading it. A sample code snippet for getting file name and other file details is as follows :
let filestore = app.filestore();
let folder = filestore.folder(FOLDER_ID);
let detailsPromise = folder.getFileDetails(FILE_ID);