If you need to find this information programmatically (like I did) this command should do the trick for you.
sudo parted -l 2>/dev/null | grep -B7 boot > temp.fil; grep Disk temp.fil; grep boot temp.fil; rm temp.fil
This command produces output similar to this:
Disk /dev/nvme0n1: 120GB
Disk Flags:
1 1049kB 577MB 576MB primary ntfs boot
For those who are unfamiliar with these commands, they work together as follows:
from man parted
-l, --list
lists partition layout on all block devices
this is piped through grep
this was cleaned up by redirecting error output to dev/null with 2>/dev/null to eliminate the error message that my optical drive was generating in parted output.
From man grep
-B NUM, --before-context=NUM
Print NUM lines of leading context before matching lines. Places a line containing a group separator (--) between
contiguous groups of matches. With the -o or --only-matching option, this has no effect and a warning is given.
I chose to grab the first 7 lines and redirect into a temporary file temp.fil for ease of obtaining the output I required, You may find that you require a different number of lines before the match to get what you need. Each ; indicates the start of a new command. grep Disk temp.fil returns the line in the temporary file that identifies the boot drive and grep boot temp.fil returns the line in the temporary file that identifies the boot partition. The rm temp.fil simply removes the temporary file previously created.
NOTE: This command string will overwrite any file called temp.fil in the current directory and then delete the result. If this is a problem for you change the name accordingly.