Is there a way to lock an iOS device name so it cannot be changed?
Yes. Supervise it with Apple Configurator.
Aaron Freimark, Enterprise iOS founder & Tekserve CTO
Yes, Aaron is correct however the end user can still change the device name if the device is supervised. And if you do something fancy like a lock screen that shows the device name and the end user changes the wallpaper you will loose that too.