Aperture can detect duplicates when you import photos and prevent you from importing them, but once the photos are in the library you are on your own.
You can run utilities to remove duplicates, like Photo Sweeper, but beware of applications,that directly modify the aperture library instead of using Aperture 's interface. That may corrupt your library.