Currently there's no way to determine if the given custom field is display in the create or view layout.