Local probing of nuclear bath polarization with a single electronic spin