Accessing Landscape layers

Hello all,
I’d like to programmatically access the layers of a landscape, I’m talking about the ones visible in the editor:

I’d like to be able to then change some of their properties dynamically, notably the physical material:

Is this doable? BP or C++ if needed is fine.

Any suggestions welcome,
r.