Voltage and current sensing hardware on chip
I would use a Howland current source with all R vale’s scaled up for safe current limiting such that the Op Amp saturates and its output reflects your impedance ratio.
Inputs for Vref and ground may be swapped for single supply if you wish.