Conscious machines, if they existed, would face the same mind-body problem the humans do. So building a conscious machine wouldn't shed light on the workings of human mentality.