An easy way to detect is to see if an ad div is visible and > 0px tall.
Edit: Clarification: Most ad blockers collapse the divs where ads would have appeared. That's the tell I use to detect ad blockers. There are other, more sophisticated techniques but this is easy and works a good % of the time.