Per Ed's sensible request, this is being duplicated from another thread.
How about the Detect Good/Evil/Chaos/Law family of spells? And Undetectable Alignment to balance things.
I think these could work almost exactly as written in the PH (perhaps with some duration adjustments or whatever) and give some good role play opportunities as the world's alignments become more diverse.