Yes it can be determined by monitoring the change of the pH with time. Suppose you have a compound that is almost constant upto certain time but after some time the pH is getting decreased .So this is the point where your compound is degrading so at that pH calculate pKa and from there the stability constant.