Method to get device information?

Is there any method to get all the device information like Manufacturer, model, os version,etc…? Assume here i’m passing the device serial number …