The death of a prisoner in a Wiltshire prison is now being investigated, as an inquest begins.