If it matches books within the Library:
With the device connected (and settled):
Search
ondevice:true
Now create a CSV catalog. Right click: Convert (icon): Create a Catalog... : Select CSV type: I will leave the rest to you
FWIW The Catalog create respects the current Library view