Start with looking at list.files function, see help to get details. There's also file.info function which can help in getting creation/modification time of files.
To check files in different locations you can use lapply or for loop. Create a list of locations before or a pattern you can iterate over.