As T3slider says, there are tools that can do that. For example,
slackroll has an orphan-search operation. It does take a lot of time to complete on the whole filesystem and false positives abound. Fortunately, you can restrict the search to a specific part of the tree. Unfortunately, /etc concentrates a lot of false positives.