If you place a sample with alkaline water in an electrolysis beaker, then over time, equilibrium will be reached between the sample and distilled water, and you can determine how much alkali is in the sample by measuring the released hydrogen and oxygen. More precisely, how much of it has passed into the distilled water before the new equilibrium. The general reaction equation is: 2H2O → 2H2 + O2. However, you will not be able to determine at what depth in the sample the hydroxyl group is located. To solve this problem, you need to study the dependence of the hydroxyl group distribution on the intensity of the -OH group band in the IR spectrum of the sample depending on the penetration depth (radius of your sample).