send host-name "<hostname>";
But, unfortunately, the ESPs are not Linux machine, so the tiny DHCP client coded in Espressif libraries doesn't not provide such functionality. They could have added such feature, but it is simply not there. Maybe you can submit a request to them, they will maybe add it in future firmware ...