Get iPad/iPhone info using only its UDID?

The short answer is no because it is generated from a lot of variables. As per Wikipedia (https://en.wikipedia.org/wiki/UDID) [on] devices introduced between 2007 and 2018 it was represented as a 40-digit lowercase hex code, and for device models introduced after 2018, as a 25-digit uppercase hex code.