Parseing the output from a "Microsoft.Dism.Commands.AdvancedFeatureObject"

I an trying to get information on a bunch of machines as to whether they have smb1 enabled
$x=Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
$y=$x.ToString()|select-string -Pattern "State"
write-host $x.ToString()
write-host $y
$y should be what I want but instead I get Microsoft.Dism.Commands.AdvancedFeatureObject
I tried to .ToString(0 it but no luck how do I extract the 5th line of this output?
FeatureName : SMB1Protocol
DisplayName : SMB 1.0/CIFS File Sharing Support
Description : Support for the SMB 1.0/CIFS file sharing protocol, and the Computer Browser protocol.
RestartRequired : Possible
State : Disabled
CustomProperties :
ServerComponent\Description : Support for the SMB 1.0/CIFS file sharing protocol, and the Computer Browser protocol.
ServerComponent\DisplayName : SMB 1.0/CIFS File Sharing Support
ServerComponent\Id : 487
ServerComponent\Type : Feature
ServerComponent\UniqueName : FS-SMB1
ServerComponent\Deploys\Update\Name : SMB1Protocol