How can you tell how much actually reacted in an acid base reaction
The procedure is called titration. It consists in adding a pH indicator (that changes color depending on pH) to the solution and adding measured quantities of base or acid until the indicator changes color and determining how much reacted from the amount used. 

An alternative is to use a pH meter instead of an indicator specially in automated analysis.