Maybe there is are most obvious way and I over-complicated this.
var currentItem = Sitecore.Context.Item; var layoutField = new LayoutField(currentItem); LayoutDefinition layoutDef = LayoutDefinition.Parse(layoutField.Value); DeviceDefinition deviceDef = layoutDef.GetDevice(Sitecore.Context.Device.ID.ToString());