@jhamstead put together a FAQ on 3-ways so you may want to read through it because 4-ways are quite similar.
BTW a 4 way has 3 switch locations and a 5-way has 4 so wanted to make sure you knew that as you are researching how to do this. It is definitely possible to use smart switches in this type of setup assuming your line from the breaker is going to one of the switches and you have a neutral as well. When in doubt hire an electrician.