The simplest way is to buy a laboratory water kit that will enable you to test your water before and after using the UV lamp. Look for a kit that tests for bacteria, like coliform and E. coli, both of which a UV lamp will be able to kill.
It’s especially important that you test your water if you’re taking it from a well, as you need to ensure that it’s safe to drink before using it in your home.