You can use the list method of the Item object to retrieve a list of all items in a particular library.
You can see an example query operation in the code example for Edit the Settings of a Library Item. The beginning of the example lists the items of a published library and prints a list with the names and size of each file in the listed items.