Query file attachments for Notes in DataBase

Can a database script be executed to retrieve the file attachment name for each note record? Alternatively, is there a historical audit log available for querying to determine if an attachment was associated with a note?

Thanking you 

Christopher