Testing modified gravity at cosmological distances with LISA standard sirens