A retail Bluefield-2 you can get for anywhere from $1.5k-to-$2k USD from a variety of online sellers; just look it up, there are a couple SKUs. You can pick up a second-hand off eBay for about $1k USD right now. It's pretty pricey no matter how you slice it. The real question with a second-hand version is if you get access to the software or not; AFAIK neither Nvidia nor Mellanox have been too stingy about this stuff in the past I think (outside of some EULAs), but who knows...
Also JFYI, all of the Bluefield SKUs are passively cooled, so they normally aren't a great fit for a homelab due to the airflow requirements...