From what I know and that's not much, I don't think you can do it in the native web app as a user, but some of the third party apps give you the option.
I think I read somewhere when I first moved to Lemmy that instance blocking was something they're working on, especially after the flood of Lemmy instances in the last couple of months.