Paint Shop Pro 8 and 9 are very similar, and X is virtually no
different in this regard.
In your Materials box, click on either your foreground or your
background color. The cursor will change to an eyedropper. Hover
it anywhere on your image and a box pops up with the R, G, and
B values. Write these down.
Here is the view in Version 8:
and the view in Version X: